package cz.muni.fi.pa165.travelagency;

import cz.muni.fi.pa165.travelagency.dto.PackageTourDTO;
import cz.muni.fi.pa165.travelagency.services.IPackageTourService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        IPackageTourService s = context.getBean("packageTourService", IPackageTourService.class);
        
        PackageTourDTO dto = new PackageTourDTO();
        dto.setName("jmeno");
        dto.setDescription("desc");
        dto.setDestination("dsf");
        dto.setCapacity(50);
        
        s.createPackageTour(dto);

    }
}
